package org.jhh.domain.activity.service.quota;

import org.jhh.domain.activity.model.entity.ActivityCountEntity;
import org.jhh.domain.activity.model.entity.ActivityEntity;
import org.jhh.domain.activity.model.entity.ActivitySkuEntity;
import org.jhh.domain.activity.repository.IActivityRepository;
import org.jhh.domain.activity.service.quota.rule.factory.DefaultActivityChainFactory;

public class RaffleActivityAccountQuotaSupport {
    protected DefaultActivityChainFactory defaultActivityChainFactory;

    protected IActivityRepository activityRepository;

    public RaffleActivityAccountQuotaSupport(IActivityRepository activityRepository, DefaultActivityChainFactory defaultActivityChainFactory) {
        this.activityRepository = activityRepository;
        this.defaultActivityChainFactory = defaultActivityChainFactory;
    }

    public ActivitySkuEntity queryActivitySku(Long sku){return activityRepository.queryActivitySku(sku);}

    public ActivityEntity queryRaffleActivityByActivityId(Long activityId){return activityRepository.queryRaffleActivityByActivityId(activityId);}

    public ActivityCountEntity queryRaffleActivityCountByActivityCountId(Long activityCountId){
        return activityRepository.queryRaffleActivityCountByActivityCountId(activityCountId);
    }
}
